Skip to content

Conversation

atakavci
Copy link
Contributor

@atakavci atakavci commented Oct 3, 2025

No description provided.

@atakavci atakavci requested review from Copilot, ggivo and uglide October 3, 2025 14:20
@atakavci atakavci self-assigned this Oct 3, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes misleading timing information in the Active-Active failover scenario test by ensuring that only commands executed on the failed cluster are counted as failover-related failures.

  • Adds a check to determine if a command is being executed on the originally active cluster
  • Modifies the failure counting logic to only increment when the command was attempted on the failed cluster

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

int maxTries = 500;
int retryingDelay = 5;
while (true) {
boolean attempToExecuteOnFailedCluster = false;
Copy link

Copilot AI Oct 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected spelling of 'attemp' to 'attempt'.

Copilot uses AI. Check for mistakes.

@atakavci atakavci force-pushed the ali/aa-scenario_test branch from ab84e38 to 70bc41f Compare October 8, 2025 14:02
@atakavci atakavci changed the base branch from feature/automatic-failover-3 to master October 8, 2025 14:03
@atakavci atakavci changed the base branch from master to feature/automatic-failover-4 October 9, 2025 06:22
* - replace EchoStrategy with PingStrategy

* - fix doc
@atakavci
Copy link
Contributor Author

atakavci commented Oct 9, 2025

https://github.com/redis-developer/cae-client-testing/actions/runs/18367528762/job/52325888167#step:9:18916

2025-10-09 07:26:07.211 [pool-2-thread-4] INFO  r.c.j.s.ActiveActiveFailoverTest - Thread 48 recovered after 5 ms. Threads still not recovered: 11
2025-10-09 07:26:07.236 [pool-2-thread-15] INFO  r.c.j.s.ActiveActiveFailoverTest - Thread 59 recovered after 5 ms. Threads still not recovered: 10
2025-10-09 07:26:07.238 [pool-2-thread-1] INFO  r.c.j.s.ActiveActiveFailoverTest - Thread 45 recovered after 5 ms. Threads still not recovered: 9
2025-10-09 07:26:07.255 [pool-2-thread-11] INFO  r.c.j.s.ActiveActiveFailoverTest - Thread 55 recovered after 5 ms. Threads still not recovered: 8
2025-10-09 07:26:07.260 [pool-2-thread-18] INFO  r.c.j.s.ActiveActiveFailoverTest - Thread 62 recovered after 5 ms. Threads still not recovered: 7
2025-10-09 07:26:07.261 [pool-2-thread-13] INFO  r.c.j.s.ActiveActiveFailoverTest - Thread 57 recovered after 5 ms. Threads still not recovered: 6
2025-10-09 07:26:07.272 [pool-2-thread-7] INFO  r.c.j.s.ActiveActiveFailoverTest - Thread 51 recovered after 5 ms. Threads still not recovered: 5
2025-10-09 07:26:07.315 [pool-2-thread-12] INFO  r.c.j.s.ActiveActiveFailoverTest - Thread 56 recovered after 5 ms. Threads still not recovered: 4
2025-10-09 07:26:07.329 [Thread-9] INFO  r.c.j.s.ActiveActiveFailoverTest - Thread 44 recovered after 5 ms. Threads still not recovered: 3
2025-10-09 07:26:07.356 [pool-2-thread-3] INFO  r.c.j.s.ActiveActiveFailoverTest - Thread 47 recovered after 5 ms. Threads still not recovered: 2
2025-10-09 07:26:07.397 [pool-2-thread-17] INFO  r.c.j.s.ActiveActiveFailoverTest - Thread 61 recovered after 5 ms. Threads still not recovered: 1
2025-10-09 07:26:07.426 [pool-2-thread-10] INFO  r.c.j.s.ActiveActiveFailoverTest - Thread 54 recovered after 5 ms. Threads still not recovered: 0
2025-10-09 07:26:57.754 [main] INFO  r.c.j.s.ActiveActiveFailoverTest - Connection pool redis-14503.c1.jedis-tests-2fe81e19.env0.qa.redislabs.com:14503: active: 0, idle: 8
2025-10-09 07:26:57.754 [main] INFO  r.c.j.s.ActiveActiveFailoverTest - Connection pool redis-14503.c2.jedis-tests-2fe81e19.env0.qa.redislabs.com:14503: active: 0, idle: 0
2025-10-09 07:26:57.754 [main] INFO  r.c.j.s.ActiveActiveFailoverTest - Failover happened at: 2025-10-09T07:25:41.071Z
2025-10-09 07:26:57.754 [main] INFO  r.c.j.s.ActiveActiveFailoverTest - Failback happened at: 2025-10-09T07:26:07.196Z
2025-10-09 07:26:57.754 [main] INFO  r.c.j.s.ActiveActiveFailoverTest - Last failed command at: 2025-10-09T07:25:41.072Z
2025-10-09 07:26:57.754 [main] INFO  r.c.j.s.ActiveActiveFailoverTest - Failed commands after failover: 3
2025-10-09 07:26:57.754 [main] INFO  r.c.j.s.ActiveActiveFailoverTest - Full failover time: 0 s
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 81.87 s -- in redis.clients.jedis.scenario.ActiveActiveFailoverTest

…epting MultiDbConnectionProvider (redis#4316)

* Remove UnifiedJedis(MultiDbConnectionProvider) experimental constructor

The recommended way to create MultiDbClient is using MultiDbClient.builder().
Update all tests to use the builder pattern.

Fixes redis#4307

* revert unintentional change in MultiDbClientBuilder
ggivo
ggivo previously approved these changes Oct 9, 2025
Copy link
Collaborator

@ggivo ggivo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

commit 297279e
Author: Igor Malinovskiy <[email protected]>
Date:   Thu Oct 9 13:06:10 2025 +0200

    Add v6 and v7 migration guides (redis#4315)

    * Add migration guide for v7

    * Move all migration guides to subfolder

    * Update readme:

    - Bump client version
    - Update list of supported Redis versions
    - Remove references to JedisPool
    - Remove reference to Google Group

    * Remove duplicated content in the migration guide

    * Update README.md

    Co-authored-by: Copilot <[email protected]>

    * Add missing v5 to v6 migration guide

    * Fix broken link

    * Update outdated modules section in README

    ---------

    Co-authored-by: Copilot <[email protected]>

commit 3645601
Author: Ivo Gaydazhiev <[email protected]>
Date:   Thu Oct 9 13:53:02 2025 +0300

    Dedicated profile for running Scenario tests (redis#4312)

    * Dedicated profile for running Scenario tests

      to run only scenario tests
      mvn -Pscenario-tests clean verify

    * format

    * remove import after rebase conflict

    * fix RedisRestAPIIT scenario test

     - increase expected bdb's count to account for additional db added to test env
     - fix incorrect bdbid used for lag-aware availablity checks
        now using bdb of'"re-active-active"

    * fix LagAwareStrategySslIT scenario test

     - Now exception is propagated in case of ssl connection errors instead of returning UNHEALTHY
     - updated the test to current expectations
     - Enhanced test to ensure untrusted default certificate

    * java 8 compatibility

    * remove @tag("integration") from IntegrationTest* to avoid multiple runs of same test

    ---------

    Co-authored-by: Igor Malinovskiy <[email protected]>

commit 07bf3b0
Author: Igor Malinovskiy <[email protected]>
Date:   Thu Oct 9 12:00:36 2025 +0200

    [automatic failover] Update failover docs (redis#4314)

    Update failover docs

    - Add migration guide from 6.x to 7.0
    - Add instructions on optional deps
    - Clean up wording to refer to multiDbClient instead of connection provider

commit 158e726
Author: Igor Malinovskiy <[email protected]>
Date:   Thu Oct 9 11:14:28 2025 +0200

    Remove deprecated constructors, classes and JedisSharding (redis#4311)

    * Remove JedisSharding

    * Remove deprecated constructors in UnifiedJedis

    * Clean up UnifiedJedisConstructorReflectionTest

    * Remove remaining ShardedCommandArguments

    * Remove deprecated PipelineBase

    * Remove deprecated TransactionBase

    * Remove unused attr in MultiDbTransaction

commit 5db1a39
Author: Igor Malinovskiy <[email protected]>
Date:   Thu Oct 9 10:04:06 2025 +0200

    Remove spellcheck (redis#4309)

    Nowadays, AI reviewing tools like CoPilot catch spellcheck issues better than pyspelling without a burden of maintaining wordlist.txt
@atakavci atakavci force-pushed the ali/aa-scenario_test branch from 2449392 to 35e54c7 Compare October 9, 2025 16:11
@atakavci atakavci changed the base branch from feature/automatic-failover-4 to master October 9, 2025 16:36
@atakavci atakavci dismissed ggivo’s stale review October 9, 2025 16:36

The base branch was changed.

Copy link
Collaborator

@ggivo ggivo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@atakavci atakavci merged commit aa7fee1 into redis:master Oct 9, 2025
14 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants